package com.haorui.lygyd.employeemanager.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.employeemanager.entity.YewuleixingEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:27:12 CST 2019
 * @Description: 业务类型
 */
@Data
public class YewuleixingDto implements DataTransferObject<YewuleixingEntity> {

    private String id;
    @ApiModelProperty(value = "业务名称")
    private String yname;
    @ApiModelProperty(value = "业务编号")
    private String ycode;
    @ApiModelProperty(value = "备注")
    private String beizhu;

    @Override
    public YewuleixingEntity buildPO() {
        YewuleixingEntity schoolEntity = new YewuleixingEntity();
        BeanUtil.beanCopyIgnoreDefault(this, schoolEntity);
        return schoolEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
